package com.qf.service.serviceImpl;

import com.qf.dao.daoImpl.loginDaoImpl;
import com.qf.dao.loginDao;
import com.qf.pojo.Profile;
import com.qf.pojo.User;
import com.qf.service.loginservice;

import java.util.List;

public class loginserviceImpl implements loginservice {
    @Override
    public boolean logindo(String username, String password) {
        loginDao logindao=new loginDaoImpl();
        return logindao.login(username,password)!=null;
    }

    @Override
    public int addser(String username, String password) {
        loginDao logindao=new loginDaoImpl();
        return logindao.add(username,password);
    }

    @Override
    public List<Profile> All() {
        loginDao logindao=new loginDaoImpl();
        return logindao.AllDao();
    }

    @Override
    public boolean delect(String id) {
        loginDao logindao=new loginDaoImpl();
        return logindao.delectDao(id);
    }
}
